var LayaAir3D = (function () {
    function LayaAir3D() {
        //初始化微信小游戏
        Laya.MiniAdpter.init();
        //初始化引擎
        Laya3D.init(0, 0, true);

        //适配模式
        Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;
        Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;

        //开启统计信息
        Laya.Stat.show();


       // this.zipFs=new zip.fs.FS();
       

         this.scene=new Laya.Scene();
        

        

        //模型加载地址
        //Laya.URL.basePath="http://domschool.cn/GameRes/";

        this.zipPath="http://domschool.cn/GameRes/Scenes.zip";
        
        this.arrZip;

        this.directory;

        this.xhr;

        // zipImportedZip(function(zippedBlob) {
        //     console.log(zippedBlob);
        //     unzipBlob(zippedBlob);
        //  });
        
        init();
    }


    function zipImportedZip(callback) {
        this. directory = this.zipFs.root.addDirectory("res");
          console.log("bbb")
        this.directory.importHttpContent(this.zipPath, false, function() {
          zipFs.exportBlob(callback);
          console.log("ccc");
        }, onerror);
   }

  function unzipBlob(blob) {
        zipFs.importBlob(blob, function() {
        var directory = zipFs.root.getChildByName("res");
        var firstEntry = directory.children[0];
        this.arrZip=firstEntry;
        console.log(firstEntry.children[1]);
        }, onerror);
    }

    function init()
    {
        var load=new LoadHttp(this.zipPath);
       // downloadFile(this.zipPath);
       // load.init(this.zipPath);
      
    }




    return LayaAir3D;
} ());

LayaAir3D();

